using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "New Player LvSO", menuName = "Data/Player LvSO")]
public class PlayerLvSO : ScriptableObject
{
    private int playerHealth = 100;
    private int playerExp = 100;
    private int playerDamage = 10;

    /// <summary>
    /// 获取当前等级的血量
    /// </summary>
    /// <param name="lv">等级</param>
    /// <returns></returns>
    public int GetPlayerHealth(int lv)
    {
        return playerHealth + 10 * lv; // (int)(playerHealth * lv * 0.1);
    }

    /// <summary>
    /// 获取当前等级升级所需经验
    /// </summary>
    /// <param name="lv">等级</param>
    /// <returns></returns>
    public int GetPlayerExp(int lv)
    {
        return playerExp + 10 * lv; // (int)(playerExp * lv * 0.1);
    }

    /// <summary>
    /// 获取当前等级的伤害
    /// </summary>
    /// <param name="lv">等级</param>
    /// <returns></returns>
    public int GetPlayerDamage(int lv)
    {
        return playerDamage + (1 * lv); // (int)(playerDamage * lv * 0.1);
    }
}